package com.lukstron.youko;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Datum {
	public Integer a = null;
	public Integer b = null;
	public Integer m = null;
	public Integer n = null;
	public Integer x = null;
	public Integer y = null;
	public Float selfPotential = null;
	public Float potential = null;
	public Float current = null;
	public Integer sequence = null;
	public Date date = null;

	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append(this.sequence);
		stringBuilder.append("\t");
		stringBuilder.append(this.y);
		stringBuilder.append("\t");
		stringBuilder.append(this.x);
		stringBuilder.append("\t");
		stringBuilder.append(this.a);
		stringBuilder.append("\t");
		stringBuilder.append(this.m);
		stringBuilder.append("\t");
		stringBuilder.append(this.n);
		stringBuilder.append("\t");
		stringBuilder.append(this.b);
		stringBuilder.append("\t");
		stringBuilder.append(this.selfPotential);
		stringBuilder.append("\t");
		stringBuilder.append(this.current);
		stringBuilder.append("\t");
		stringBuilder.append(this.potential);
		stringBuilder.append("\t");
		SimpleDateFormat formatter = null;
		formatter = new SimpleDateFormat("hh:mm:ss");
		stringBuilder.append(formatter.format(this.date));
		return stringBuilder.toString();
	}

	public String toProbeString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("A: ");
		stringBuilder.append(this.a);
		stringBuilder.append(", ");
		stringBuilder.append("M: ");
		stringBuilder.append(this.m);
		stringBuilder.append(", ");
		stringBuilder.append("N: ");
		stringBuilder.append(this.n);
		stringBuilder.append(", ");
		stringBuilder.append("B: ");
		stringBuilder.append(this.b);
		return stringBuilder.toString();
	}

	public String toDatumString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("#: ");
		stringBuilder.append(this.sequence);
		stringBuilder.append(", ");
		stringBuilder.append("SP: ");
		stringBuilder.append(this.selfPotential);
		stringBuilder.append(", ");
		stringBuilder.append("I AB: ");
		stringBuilder.append(this.current);
		stringBuilder.append(", ");
		stringBuilder.append("V MN: ");
		stringBuilder.append(this.potential);
		return stringBuilder.toString();
	}

}
